package com.teamall.web.tssy.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class TsSyAreaArg {
    private String pk_name = "ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<TsSyAreaCriteria> oredCriteria;

    public TsSyAreaArg() {
        oredCriteria = new ArrayList<TsSyAreaCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<TsSyAreaCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(TsSyAreaCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public TsSyAreaCriteria or() {
    	TsSyAreaCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TsSyAreaCriteria createCriteria() {
    	TsSyAreaCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected TsSyAreaCriteria createCriteriaInternal() {
    	TsSyAreaCriteria criteria = new TsSyAreaCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<TsSyAreaCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<TsSyAreaCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<TsSyAreaCriterion> getAllCriteria() {
            return criteria;
        }

        public List<TsSyAreaCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new TsSyAreaCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyAreaCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyAreaCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyAreaCriterion(condition, value1, value2));
        }

        public TsSyAreaCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andIdIsNull() {
            addCriterion("ID is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdLessThan(String value) {
            addCriterion("ID <", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdLike(String value) {
            addCriterion("ID like ", value, "ID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotLike(String value) {
            addCriterion("ID  not like ", value, "ID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdLeftLike(String value) {
            addCriterion("ID like ", value, "ID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotLeftLike(String value) {
            addCriterion("ID  not like ", value, "ID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdRightLike(String value) {
            addCriterion("ID like ", value, "ID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotRightLike(String value) {
            addCriterion("ID  not like ", value, "ID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdIn(List<String> values) {
            addCriterion("ID  in ", values, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotIn(List<String> values) {
            addCriterion("ID not in ", values, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdBetween(String value1, String value2) {
            addCriterion("ID between ", value1, value2, "ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between ", value1, value2, "ID");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andPidIsNull() {
            addCriterion("PID is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidIsNotNull() {
            addCriterion("PID is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidEqualTo(String value) {
            addCriterion("PID =", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotEqualTo(String value) {
            addCriterion("PID <>", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidGreaterThan(String value) {
            addCriterion("PID >", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidGreaterThanOrEqualTo(String value) {
            addCriterion("PID >=", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidLessThan(String value) {
            addCriterion("PID <", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidLessThanOrEqualTo(String value) {
            addCriterion("PID <=", value, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidLike(String value) {
            addCriterion("PID like ", value, "PID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotLike(String value) {
            addCriterion("PID  not like ", value, "PID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidLeftLike(String value) {
            addCriterion("PID like ", value, "PID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotLeftLike(String value) {
            addCriterion("PID  not like ", value, "PID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidRightLike(String value) {
            addCriterion("PID like ", value, "PID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotRightLike(String value) {
            addCriterion("PID  not like ", value, "PID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidIn(List<String> values) {
            addCriterion("PID  in ", values, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotIn(List<String> values) {
            addCriterion("PID not in ", values, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidBetween(String value1, String value2) {
            addCriterion("PID between ", value1, value2, "PID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPidNotBetween(String value1, String value2) {
            addCriterion("PID not between ", value1, value2, "PID");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andLevelIsNull() {
            addCriterion("LEVEL is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelIsNotNull() {
            addCriterion("LEVEL is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelEqualTo(Integer value) {
            addCriterion("LEVEL =", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotEqualTo(Integer value) {
            addCriterion("LEVEL <>", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelGreaterThan(Integer value) {
            addCriterion("LEVEL >", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("LEVEL >=", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelLessThan(Integer value) {
            addCriterion("LEVEL <", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("LEVEL <=", value, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelLike(Integer value) {
            addCriterion("LEVEL like ", value, "LEVEL", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotLike(Integer value) {
            addCriterion("LEVEL  not like ", value, "LEVEL", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelLeftLike(Integer value) {
            addCriterion("LEVEL like ", value, "LEVEL", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotLeftLike(Integer value) {
            addCriterion("LEVEL  not like ", value, "LEVEL", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelRightLike(Integer value) {
            addCriterion("LEVEL like ", value, "LEVEL", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotRightLike(Integer value) {
            addCriterion("LEVEL  not like ", value, "LEVEL", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelIn(List<Integer> values) {
            addCriterion("LEVEL  in ", values, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotIn(List<Integer> values) {
            addCriterion("LEVEL not in ", values, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("LEVEL between ", value1, value2, "LEVEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("LEVEL not between ", value1, value2, "LEVEL");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andLevelNameIsNull() {
            addCriterion("LEVEL_NAME is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameIsNotNull() {
            addCriterion("LEVEL_NAME is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameEqualTo(String value) {
            addCriterion("LEVEL_NAME =", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotEqualTo(String value) {
            addCriterion("LEVEL_NAME <>", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameGreaterThan(String value) {
            addCriterion("LEVEL_NAME >", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameGreaterThanOrEqualTo(String value) {
            addCriterion("LEVEL_NAME >=", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameLessThan(String value) {
            addCriterion("LEVEL_NAME <", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameLessThanOrEqualTo(String value) {
            addCriterion("LEVEL_NAME <=", value, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameLike(String value) {
            addCriterion("LEVEL_NAME like ", value, "LEVEL_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotLike(String value) {
            addCriterion("LEVEL_NAME  not like ", value, "LEVEL_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameLeftLike(String value) {
            addCriterion("LEVEL_NAME like ", value, "LEVEL_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotLeftLike(String value) {
            addCriterion("LEVEL_NAME  not like ", value, "LEVEL_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameRightLike(String value) {
            addCriterion("LEVEL_NAME like ", value, "LEVEL_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotRightLike(String value) {
            addCriterion("LEVEL_NAME  not like ", value, "LEVEL_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameIn(List<String> values) {
            addCriterion("LEVEL_NAME  in ", values, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotIn(List<String> values) {
            addCriterion("LEVEL_NAME not in ", values, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameBetween(String value1, String value2) {
            addCriterion("LEVEL_NAME between ", value1, value2, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andLevelNameNotBetween(String value1, String value2) {
            addCriterion("LEVEL_NAME not between ", value1, value2, "LEVEL_NAME");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andAreaCodeIsNull() {
            addCriterion("AREA_CODE is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeIsNotNull() {
            addCriterion("AREA_CODE is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeEqualTo(String value) {
            addCriterion("AREA_CODE =", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotEqualTo(String value) {
            addCriterion("AREA_CODE <>", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeGreaterThan(String value) {
            addCriterion("AREA_CODE >", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeGreaterThanOrEqualTo(String value) {
            addCriterion("AREA_CODE >=", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeLessThan(String value) {
            addCriterion("AREA_CODE <", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeLessThanOrEqualTo(String value) {
            addCriterion("AREA_CODE <=", value, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeLike(String value) {
            addCriterion("AREA_CODE like ", value, "AREA_CODE", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotLike(String value) {
            addCriterion("AREA_CODE  not like ", value, "AREA_CODE", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeLeftLike(String value) {
            addCriterion("AREA_CODE like ", value, "AREA_CODE", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotLeftLike(String value) {
            addCriterion("AREA_CODE  not like ", value, "AREA_CODE", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeRightLike(String value) {
            addCriterion("AREA_CODE like ", value, "AREA_CODE", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotRightLike(String value) {
            addCriterion("AREA_CODE  not like ", value, "AREA_CODE", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeIn(List<String> values) {
            addCriterion("AREA_CODE  in ", values, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotIn(List<String> values) {
            addCriterion("AREA_CODE not in ", values, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeBetween(String value1, String value2) {
            addCriterion("AREA_CODE between ", value1, value2, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaCodeNotBetween(String value1, String value2) {
            addCriterion("AREA_CODE not between ", value1, value2, "AREA_CODE");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andAreaNameIsNull() {
            addCriterion("AREA_NAME is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameIsNotNull() {
            addCriterion("AREA_NAME is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameEqualTo(String value) {
            addCriterion("AREA_NAME =", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotEqualTo(String value) {
            addCriterion("AREA_NAME <>", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameGreaterThan(String value) {
            addCriterion("AREA_NAME >", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameGreaterThanOrEqualTo(String value) {
            addCriterion("AREA_NAME >=", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameLessThan(String value) {
            addCriterion("AREA_NAME <", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameLessThanOrEqualTo(String value) {
            addCriterion("AREA_NAME <=", value, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameLike(String value) {
            addCriterion("AREA_NAME like ", value, "AREA_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotLike(String value) {
            addCriterion("AREA_NAME  not like ", value, "AREA_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameLeftLike(String value) {
            addCriterion("AREA_NAME like ", value, "AREA_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotLeftLike(String value) {
            addCriterion("AREA_NAME  not like ", value, "AREA_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameRightLike(String value) {
            addCriterion("AREA_NAME like ", value, "AREA_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotRightLike(String value) {
            addCriterion("AREA_NAME  not like ", value, "AREA_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameIn(List<String> values) {
            addCriterion("AREA_NAME  in ", values, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotIn(List<String> values) {
            addCriterion("AREA_NAME not in ", values, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameBetween(String value1, String value2) {
            addCriterion("AREA_NAME between ", value1, value2, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andAreaNameNotBetween(String value1, String value2) {
            addCriterion("AREA_NAME not between ", value1, value2, "AREA_NAME");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andHelpCodeIsNull() {
            addCriterion("HELP_CODE is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeIsNotNull() {
            addCriterion("HELP_CODE is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeEqualTo(String value) {
            addCriterion("HELP_CODE =", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotEqualTo(String value) {
            addCriterion("HELP_CODE <>", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeGreaterThan(String value) {
            addCriterion("HELP_CODE >", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeGreaterThanOrEqualTo(String value) {
            addCriterion("HELP_CODE >=", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeLessThan(String value) {
            addCriterion("HELP_CODE <", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeLessThanOrEqualTo(String value) {
            addCriterion("HELP_CODE <=", value, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeLike(String value) {
            addCriterion("HELP_CODE like ", value, "HELP_CODE", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotLike(String value) {
            addCriterion("HELP_CODE  not like ", value, "HELP_CODE", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeLeftLike(String value) {
            addCriterion("HELP_CODE like ", value, "HELP_CODE", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotLeftLike(String value) {
            addCriterion("HELP_CODE  not like ", value, "HELP_CODE", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeRightLike(String value) {
            addCriterion("HELP_CODE like ", value, "HELP_CODE", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotRightLike(String value) {
            addCriterion("HELP_CODE  not like ", value, "HELP_CODE", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeIn(List<String> values) {
            addCriterion("HELP_CODE  in ", values, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotIn(List<String> values) {
            addCriterion("HELP_CODE not in ", values, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeBetween(String value1, String value2) {
            addCriterion("HELP_CODE between ", value1, value2, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andHelpCodeNotBetween(String value1, String value2) {
            addCriterion("HELP_CODE not between ", value1, value2, "HELP_CODE");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andPinyinIsNull() {
            addCriterion("PINYIN is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinIsNotNull() {
            addCriterion("PINYIN is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinEqualTo(String value) {
            addCriterion("PINYIN =", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotEqualTo(String value) {
            addCriterion("PINYIN <>", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinGreaterThan(String value) {
            addCriterion("PINYIN >", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinGreaterThanOrEqualTo(String value) {
            addCriterion("PINYIN >=", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinLessThan(String value) {
            addCriterion("PINYIN <", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinLessThanOrEqualTo(String value) {
            addCriterion("PINYIN <=", value, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinLike(String value) {
            addCriterion("PINYIN like ", value, "PINYIN", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotLike(String value) {
            addCriterion("PINYIN  not like ", value, "PINYIN", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinLeftLike(String value) {
            addCriterion("PINYIN like ", value, "PINYIN", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotLeftLike(String value) {
            addCriterion("PINYIN  not like ", value, "PINYIN", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinRightLike(String value) {
            addCriterion("PINYIN like ", value, "PINYIN", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotRightLike(String value) {
            addCriterion("PINYIN  not like ", value, "PINYIN", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinIn(List<String> values) {
            addCriterion("PINYIN  in ", values, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotIn(List<String> values) {
            addCriterion("PINYIN not in ", values, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinBetween(String value1, String value2) {
            addCriterion("PINYIN between ", value1, value2, "PINYIN");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andPinyinNotBetween(String value1, String value2) {
            addCriterion("PINYIN not between ", value1, value2, "PINYIN");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andFullNameIsNull() {
            addCriterion("FULL_NAME is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameIsNotNull() {
            addCriterion("FULL_NAME is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameEqualTo(String value) {
            addCriterion("FULL_NAME =", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotEqualTo(String value) {
            addCriterion("FULL_NAME <>", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameGreaterThan(String value) {
            addCriterion("FULL_NAME >", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameGreaterThanOrEqualTo(String value) {
            addCriterion("FULL_NAME >=", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameLessThan(String value) {
            addCriterion("FULL_NAME <", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameLessThanOrEqualTo(String value) {
            addCriterion("FULL_NAME <=", value, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameLike(String value) {
            addCriterion("FULL_NAME like ", value, "FULL_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotLike(String value) {
            addCriterion("FULL_NAME  not like ", value, "FULL_NAME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameLeftLike(String value) {
            addCriterion("FULL_NAME like ", value, "FULL_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotLeftLike(String value) {
            addCriterion("FULL_NAME  not like ", value, "FULL_NAME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameRightLike(String value) {
            addCriterion("FULL_NAME like ", value, "FULL_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotRightLike(String value) {
            addCriterion("FULL_NAME  not like ", value, "FULL_NAME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameIn(List<String> values) {
            addCriterion("FULL_NAME  in ", values, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotIn(List<String> values) {
            addCriterion("FULL_NAME not in ", values, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameBetween(String value1, String value2) {
            addCriterion("FULL_NAME between ", value1, value2, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullNameNotBetween(String value1, String value2) {
            addCriterion("FULL_NAME not between ", value1, value2, "FULL_NAME");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andFullIdIsNull() {
            addCriterion("FULL_ID is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdIsNotNull() {
            addCriterion("FULL_ID is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdEqualTo(String value) {
            addCriterion("FULL_ID =", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotEqualTo(String value) {
            addCriterion("FULL_ID <>", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdGreaterThan(String value) {
            addCriterion("FULL_ID >", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdGreaterThanOrEqualTo(String value) {
            addCriterion("FULL_ID >=", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdLessThan(String value) {
            addCriterion("FULL_ID <", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdLessThanOrEqualTo(String value) {
            addCriterion("FULL_ID <=", value, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdLike(String value) {
            addCriterion("FULL_ID like ", value, "FULL_ID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotLike(String value) {
            addCriterion("FULL_ID  not like ", value, "FULL_ID", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdLeftLike(String value) {
            addCriterion("FULL_ID like ", value, "FULL_ID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotLeftLike(String value) {
            addCriterion("FULL_ID  not like ", value, "FULL_ID", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdRightLike(String value) {
            addCriterion("FULL_ID like ", value, "FULL_ID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotRightLike(String value) {
            addCriterion("FULL_ID  not like ", value, "FULL_ID", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdIn(List<String> values) {
            addCriterion("FULL_ID  in ", values, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotIn(List<String> values) {
            addCriterion("FULL_ID not in ", values, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdBetween(String value1, String value2) {
            addCriterion("FULL_ID between ", value1, value2, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andFullIdNotBetween(String value1, String value2) {
            addCriterion("FULL_ID not between ", value1, value2, "FULL_ID");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andCreateByIsNull() {
            addCriterion("CREATE_BY is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByIsNotNull() {
            addCriterion("CREATE_BY is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByEqualTo(String value) {
            addCriterion("CREATE_BY =", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotEqualTo(String value) {
            addCriterion("CREATE_BY <>", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByGreaterThan(String value) {
            addCriterion("CREATE_BY >", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_BY >=", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByLessThan(String value) {
            addCriterion("CREATE_BY <", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("CREATE_BY <=", value, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByLeftLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotLeftLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByRightLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotRightLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByIn(List<String> values) {
            addCriterion("CREATE_BY  in ", values, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotIn(List<String> values) {
            addCriterion("CREATE_BY not in ", values, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByBetween(String value1, String value2) {
            addCriterion("CREATE_BY between ", value1, value2, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("CREATE_BY not between ", value1, value2, "CREATE_BY");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeLeftLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotLeftLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeRightLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotRightLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME  in ", values, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in ", values, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between ", value1, value2, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between ", value1, value2, "CREATE_TIME");
            return (TsSyAreaCriteria) this;
        }
        public TsSyAreaCriteria andIsDelIsNull() {
            addCriterion("IS_DEL is null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelIsNotNull() {
            addCriterion("IS_DEL is not null");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelEqualTo(String value) {
            addCriterion("IS_DEL =", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotEqualTo(String value) {
            addCriterion("IS_DEL <>", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelGreaterThan(String value) {
            addCriterion("IS_DEL >", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelGreaterThanOrEqualTo(String value) {
            addCriterion("IS_DEL >=", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelLessThan(String value) {
            addCriterion("IS_DEL <", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelLessThanOrEqualTo(String value) {
            addCriterion("IS_DEL <=", value, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 1);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelLeftLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotLeftLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 0);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelRightLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotRightLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 2);
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelIn(List<String> values) {
            addCriterion("IS_DEL  in ", values, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotIn(List<String> values) {
            addCriterion("IS_DEL not in ", values, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelBetween(String value1, String value2) {
            addCriterion("IS_DEL between ", value1, value2, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

        public TsSyAreaCriteria andIsDelNotBetween(String value1, String value2) {
            addCriterion("IS_DEL not between ", value1, value2, "IS_DEL");
            return (TsSyAreaCriteria) this;
        }

    }

    public static class TsSyAreaCriteria extends GeneratedCriteria {

        protected TsSyAreaCriteria() {
            super();
        }
    }

    public static class TsSyAreaCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected TsSyAreaCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected TsSyAreaCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected TsSyAreaCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected TsSyAreaCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected TsSyAreaCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected TsSyAreaCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}